Skip to content

Add more font-width data #26069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 13, 2025
Merged

Add more font-width data #26069

merged 9 commits into from
May 13, 2025

Conversation

ddbeck
Copy link
Contributor

@ddbeck ddbeck commented Feb 27, 2025

Summary

This creates more symmetry between font-stretch and font-width data.

Test results and supporting details

  • Adds the <percentage> value to the font-width tree, to match font-stretch and fully cover the expected values and types for font-width.
  • Copies the font-width data into the @font-face tree, as a descriptor.
  • Adds the non-standard font-width SVG global attribute (shipped in Safari, contrary to the implication of the specification)

Related issues

@github-actions github-actions bot added data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:l [PR only] 101-1000 LoC changed labels Feb 27, 2025
@ddbeck

This comment was marked as resolved.

@caugner caugner marked this pull request as draft March 4, 2025 16:06
@caugner

This comment was marked as resolved.

@github-actions github-actions bot added the data:svg Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG label May 3, 2025
Copy link
Contributor

github-actions bot commented May 3, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

This probably shouldn't exist.
@ddbeck
Copy link
Contributor Author

ddbeck commented May 3, 2025

This PR is now ready for review again. I've updated the PR with the relevant SVG data.

I also sent w3c/svgwg#978. If we get an answer there, I'll update this PR or send a follow up (depending on how quickly this gets merged).

@caugner caugner self-requested a review May 6, 2025 14:11
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, just three comments.

Additional links:

ddbeck and others added 2 commits May 6, 2025 11:44
@caugner caugner self-requested a review May 6, 2025 16:19
ddbeck and others added 2 commits May 6, 2025 18:38
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
@ddbeck ddbeck requested a review from caugner May 12, 2025 12:44
@caugner caugner merged commit 6cdd001 into mdn:main May 13, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS data:svg Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG size:l [PR only] 101-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants